import request from "@/utils/request";

export function getUser(topicId,groupId) {
  return request({
    url: '/iot/alarm/setting/getUser/'+topicId+"/"+groupId,
    method: 'get',
  })
}

export function getTopic() {
  return request({
    url: '/iot/alarm/setting/getTopic',
    method: 'get',
  })
}
export function settingList(query) {
  return request({
    url: '/iot/alarm/setting/list',
    method: 'get',
    params: query
  })
}

export function addSetting(data) {
  return request({
    url: '/iot/alarm/setting',
    method: 'post',
    data: data
  })
}

export function delSetting(rowIds) {
  return request({
    url: '/iot/alarm/setting/' + rowIds ,
    method: 'delete'
  })
}
